from wtforms import Form,IntegerField, StringField
from wtforms.validators import Length, NumberRange, DataRequired


class SearchForm(Form):
    q = StringField(validators=[DataRequired(), Length(min=1, max=64)])
    page = IntegerField(validators=[NumberRange(1)], default=1)
